﻿using System.Data;

namespace CavemanTools.Sql
{
	///<summary>
	///</summary>
	public interface IAddDbParameter
	{
		/// <summary>
		/// Creates and adds parameter to command
		/// </summary>
		/// <param name="name">Name of param or null for numbered params</param>
		/// <param name="value"></param>
		/// <returns></returns>
		IDataParameter AddParameter(string name, object value);

		string FormatParameterName(string name);

	}
}